﻿@model SrBBSPro.Entities.Post
@{
    ViewBag.Title = "编辑问题";
    Layout = "~/Views/Shared/_LayoutPage.cshtml";
}

<div class="main layui-clear">
    <fieldset class="layui-elem-field layui-field-title">
        <legend>编辑问题</legend>
    </fieldset>
    <div class="layui-form layui-form-pane">
        <form method="post">
            @Html.AntiForgeryToken()
            <input type="hidden" name="id" value="@Model.Id" />
            <div class="layui-form-item">
                <label for="L_title" class="layui-form-label">标题</label>
                <div class="layui-input-block">
                    <input type="text" id="L_title" name="title" disabled value="@Model.Title" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item layui-form-text">
                <div class="layui-input-block">
                    <textarea id="L_content" name="content" required lay-verify="required" class="layui-textarea fly-editor" style="height: 260px;">@Model.Content</textarea>
                </div>
                <label for="L_content" class="layui-form-label" style="top: -2px;">描述</label>
            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <label class="layui-form-label">所在类别</label>
                    <div class="layui-input-block">
                        <input value="@Model.SkillKindName" class="layui-input" readonly="readonly" />
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">技术名称</label>
                    <div class="layui-input-block">
                        <input value="@Model.SkillName" class="layui-input" readonly="readonly" />
                    </div>
                </div>
                <div class="layui-inline">
                    <label class="layui-form-label">悬赏积分</label>
                    <div class="layui-input-block" style="width:80px">
                        <input value="@Model.Reward" class="layui-input" readonly="readonly" />
                    </div>
                </div>
            </div>
            <div class="layui-form-item">
                <button class="layui-btn layui-btn-normal" lay-filter="*" lay-submit>立即发布</button>
            </div>
        </form>
    </div>
</div>

